package com.zbl.zblproject.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/24
 * 调拨单详细
 */
@TableName("zbl_allot_orderitem")
public class ErpAllotOrderItem {

    @TableId(type = IdType.AUTO)
    private int id;

    private int orderId;

    private int fromWh;

    private int toWh;

    private int number;

    private int goodsId;

    @TableField(exist = false)
    private ErpGoods goods;

    @TableField(exist = false)
    private ErpWarehouse warehouseFrom;

    @TableField(exist = false)
    private ErpWarehouse warehouseTo;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getFromWh() {
        return fromWh;
    }

    public void setFromWh(int fromWh) {
        this.fromWh = fromWh;
    }

    public int getToWh() {
        return toWh;
    }

    public void setToWh(int toWh) {
        this.toWh = toWh;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public ErpGoods getGoods() {
        return goods;
    }

    public void setGoods(ErpGoods goods) {
        this.goods = goods;
    }

    public ErpWarehouse getWarehouseFrom() {
        return warehouseFrom;
    }

    public void setWarehouseFrom(ErpWarehouse warehouseFrom) {
        this.warehouseFrom = warehouseFrom;
    }

    public ErpWarehouse getWarehouseTo() {
        return warehouseTo;
    }

    public void setWarehouseTo(ErpWarehouse warehouseTo) {
        this.warehouseTo = warehouseTo;
    }

    @Override
    public String toString() {
        return "ErpAllotOrderItem{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", fromWh=" + fromWh +
                ", toWh=" + toWh +
                ", number=" + number +
                '}';
    }
}
